/*
 * @Descripttion: 
 * @version: 
 * @Author: xyh
 * @Date: 2021-04-02 12:36:48
 * @LastEditTime: 2021-04-02 15:12:34
 */






import {dynamic} from 'umi';
import { connect } from 'dva';
import { Button } from 'antd';
const delay = (timeout) => new Promise(resolve => setTimeout(resolve, timeout));
const User = dynamic({
  loader: async function(props) {
    // await delay(/* 1s */0);
    console.log(props);
    return () => <div>
        <h1>我是user组件</h1>
        <img src={require("../../assets/yay.jpg")} alt="上海鲜花港 - 郁金香"/>
    </div>;
  },
});


export default connect(state=>state.system)(User);